class EvaluationResultCamtsController < ApplicationController
  # GET /evaluation_result_camts
  # GET /evaluation_result_camts.xml
  def index
    @evaluation_result_camts = EvaluationResultCamt.all

    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :xml => @evaluation_result_camts }
    end
  end

  # GET /evaluation_result_camts/1
  # GET /evaluation_result_camts/1.xml
  def show
    @evaluation_result_camt = EvaluationResultCamt.find(params[:id])

    respond_to do |format|
      format.html # show.html.erb
      format.xml  { render :xml => @evaluation_result_camt }
    end
  end

  # GET /evaluation_result_camts/new
  # GET /evaluation_result_camts/new.xml
  def new
    @evaluation_result_camt = EvaluationResultCamt.new

    respond_to do |format|
      format.html # new.html.erb
      format.xml  { render :xml => @evaluation_result_camt }
    end
  end

  # GET /evaluation_result_camts/1/edit
  def edit
    @evaluation_result_camt = EvaluationResultCamt.find(params[:id])
  end

  # POST /evaluation_result_camts
  # POST /evaluation_result_camts.xml
  def create
    @evaluation_result_camt = EvaluationResultCamt.new(params[:evaluation_result_camt])

    respond_to do |format|
      if @evaluation_result_camt.save
        format.html { redirect_to(@evaluation_result_camt, :notice => 'Evaluation result camt was successfully created.') }
        format.xml  { render :xml => @evaluation_result_camt, :status => :created, :location => @evaluation_result_camt }
      else
        format.html { render :action => "new" }
        format.xml  { render :xml => @evaluation_result_camt.errors, :status => :unprocessable_entity }
      end
    end
  end

  # PUT /evaluation_result_camts/1
  # PUT /evaluation_result_camts/1.xml
  def update
    @evaluation_result_camt = EvaluationResultCamt.find(params[:id])

    respond_to do |format|
      if @evaluation_result_camt.update_attributes(params[:evaluation_result_camt])
        format.html { redirect_to(@evaluation_result_camt, :notice => 'Evaluation result camt was successfully updated.') }
        format.xml  { head :ok }
      else
        format.html { render :action => "edit" }
        format.xml  { render :xml => @evaluation_result_camt.errors, :status => :unprocessable_entity }
      end
    end
  end

  # DELETE /evaluation_result_camts/1
  # DELETE /evaluation_result_camts/1.xml
  def destroy
    @evaluation_result_camt = EvaluationResultCamt.find(params[:id])
    @evaluation_result_camt.destroy

    respond_to do |format|
      format.html { redirect_to(evaluation_result_camts_url) }
      format.xml  { head :ok }
    end
  end
end
